package cn.kgc.springboot1048.spring_vue2.service;

import cn.kgc.springboot1048.spring_vue2.entity.Houseinfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author szz
 * @since 2024-04-10
 */
public interface HouseinfoService extends IService<Houseinfo> {

    PageInfo<Houseinfo> selectAll(String desc, Integer pageSize, Integer pageIndex);

    int del(Integer Id);

    int add(Houseinfo houseinfo);

    //根据ID查询一个对象用于下一个修改方法
    Houseinfo selectById(Integer Id);

    //修改
    boolean updateByHouse(Houseinfo houseinfo);

    List<Houseinfo> selectByDesc(String desc);

}
